package com.dxq.oa.dao;

import com.dxq.oa.entity.Menu;
import com.dxq.oa.entity.Role;
import com.dxq.oa.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User selectByName(@Param("username") String username);

    List<User> selAll();

    List<User> findBypage(Integer start,Integer row);
    long findTotal();

    public List<Menu> selMenu();

    int insertUser(@Param("user") User user);

    List<Menu> selMList();

    String selBypwd(@Param("pwd") String pwd);

    void updatePwd(@Param("pwd") String pwd,@Param("account") String account);

    List<Role> selRole();
}
